import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './api/mock'

// import axios from 'axios';
//把axios实例化后引入main.js文件。挂载在axios原型链上全局使用。

Vue.use(ElementUI);
// axios 请求拦截


new Vue({
  router,
  store,
  created() {
    store.commit('addMenu', router)
  },
  render: h => h(App)
}).$mount('#app')
